<template>
  <div>
    <el-pagination
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-size="pageSize"
      layout="total, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
  </div>
</template>

<script>
import { mapMutations } from "vuex";
export default {
  props: {
    total: {
      type: Number,
      default: 100,
    },
    pageSize: {},
  },
  methods: {
    ...mapMutations("audio", ["beginClickBg"]),
    handleCurrentChange(val) {
      this.beginClickBg();
      this.$emit("CurrentChange", val);
    },
  },
  data() {
    return {
      currentPage: 1,
    };
  },
};
</script>

<style></style>
